#ifndef CONTROL_PANEL_H
#define CONTROL_PANEL_H

#include <QWidget>
#include <memory>
#include "table_view.h"
#include "table_view2.h"

namespace Ui
{
class control_panel;
}

class control_panel
        : public QWidget
{
    Q_OBJECT

public:
    explicit control_panel(QWidget *parent = 0);
    ~control_panel();

private slots:
    void on_create_table_btn_clicked();
    void on_add_row_btn_clicked();
    void on_del_row_btn_clicked();
    void on_add_col_btn_clicked();
    void on_del_col_btn_clicked();
    void on_autoresizel_btn_clicked();

    void on_print_sizes_btn_clicked();

    void on_clear_btn_clicked();

private:
    typedef std::shared_ptr<table_view>  table_view_ptr;
    typedef std::shared_ptr<table_view2> table_view2_ptr;
    typedef std::shared_ptr<QWidget>     widget_ptr;

private:
    Ui::control_panel *ui;
    widget_ptr         widget_;
    QLabel            *lbl_;
    table_view_ptr     table_;
    table_view2_ptr    table2_;
};

#endif // CONTROL_PANEL_H
